package com.friend.campusnotice.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2016/5/24.
 */
public class CallLog implements Parcelable {

    private String phoneNum;
    private Long callDate;
    private String name;
    private String callType;
    private Boolean isSingle;

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public Long getCallDate() {
        return callDate;
    }

    public void setCallDate(Long callDate) {
        this.callDate = callDate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCallType() {
        return callType;
    }

    public void setCallType(String callType) {
        this.callType = callType;
    }

    public Boolean getSingle() {
        return isSingle;
    }

    public void setSingle(Boolean single) {
        isSingle = single;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.phoneNum);
        dest.writeValue(this.callDate);
        dest.writeString(this.name);
        dest.writeString(this.callType);
        dest.writeValue(this.isSingle);
    }

    public CallLog() {
    }

    protected CallLog(Parcel in) {
        this.phoneNum = in.readString();
        this.callDate = (Long) in.readValue(Long.class.getClassLoader());
        this.name = in.readString();
        this.callType = in.readString();
        this.isSingle = (Boolean) in.readValue(Boolean.class.getClassLoader());
    }

    public static final Parcelable.Creator<CallLog> CREATOR = new Parcelable.Creator<CallLog>() {
        @Override
        public CallLog createFromParcel(Parcel source) {
            return new CallLog(source);
        }

        @Override
        public CallLog[] newArray(int size) {
            return new CallLog[size];
        }
    };
}
